//
//  HomeAttentionFunUserModel.swift
//  HomeAttentionFunUserModel
//
//  Created by Ben on 2021/8/30.
//

import SwiftUI

let DEFAULT_ATTENTION_FUNUSER_MODELS: [HomeAttentionFunUserModel] = [
    
    HomeAttentionFunUserModel(
        user: DEFAULT_USER_MODELS.randomElement(),
        goodsList: [ ]
    ),
    HomeAttentionFunUserModel(
        user: DEFAULT_USER_MODELS.randomElement(),
        goodsList: [ ]
    ),
    HomeAttentionFunUserModel(
        user: DEFAULT_USER_MODELS.randomElement(),
        goodsList: [ ]
    ),
    HomeAttentionFunUserModel(
        user: DEFAULT_USER_MODELS.randomElement(),
        goodsList: [ ]
    ),
    HomeAttentionFunUserModel(
        user: DEFAULT_USER_MODELS.randomElement(),
        goodsList: [ ]
    ),
    HomeAttentionFunUserModel(
        user: DEFAULT_USER_MODELS.randomElement(),
        goodsList: [ ]
    ),
    HomeAttentionFunUserModel(
        user: DEFAULT_USER_MODELS.randomElement(),
        goodsList: [ ]
    ),
    HomeAttentionFunUserModel(
        user: DEFAULT_USER_MODELS.randomElement(),
        goodsList: [ ]
    ),
    HomeAttentionFunUserModel(
        user: DEFAULT_USER_MODELS.randomElement(),
        goodsList: [ ]
    ),
    HomeAttentionFunUserModel(
        user: DEFAULT_USER_MODELS.randomElement(),
        goodsList: [ ]
    ),
    HomeAttentionFunUserModel(
        user: DEFAULT_USER_MODELS.randomElement(),
        goodsList: [ ]
    ),
    
]

struct HomeAttentionFunUserModel: Identifiable, Codable, Hashable {
   
    func hash(into hasher: inout Hasher) {
        hasher.combine(user?.id)
        
    }

    var id: String = UUID().uuidString
    var user: UserModel?
    var goodsList: [GoodsInfoModel]?
    
}
